c program for reverse of a number using for loop